package com.restaurant.application.root.support;

import com.nebutown.base.data.View;
import com.nebutown.supporthome.AbstractImpl;
import com.restaurant.application.root.Root;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

public abstract class AbstractRoot extends AbstractImpl implements Root {

    private static final Logger logger = LoggerFactory.getLogger(Root.class);

    public final Class<?> getEffectiveInterface() {
        return Root.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "RootData";

    public RootData getData() {
        return escort.getData(RootData.class);
    }

    public void setData(RootData data) {
        escort.setData(data);
    }

    public View newRoot(String id, RootPageData data, List viewList) {
        return buildView(id, com.restaurant.application.root.Root.class, "root", data, viewList, null);
    }
}
